/****************************************************************************
 HiResTimer.h
 
 Wrapper for the high-resolution timer. Can't be used if the hi-res timer
 doesn't exist.
  
 Author   :   Dave Astle
 Date     :   2/1/2001

 Written for OpenGL Game Programming
*****************************************************************************/

#ifndef __TIMER_H_INCLUDED__
#define __TIMER_H_INCLUDED__

/* #include <windows.h> */
#include <SDL/SDL.h>

class CHiResTimer
{
public:
  CHiResTimer() {}
  ~CHiResTimer() {}

  bool Init();
  float GetElapsedSeconds(unsigned long elapsedFrames = 1);
  float GetFPS(unsigned long elapsedFrames = 1);
  float LockFPS(unsigned char targetFPS);

private:
/*  LARGE_INTEGER   m_startTime;
  LARGE_INTEGER   m_ticksPerSecond;*/
  Uint32 m_startTime;
};

#endif // __TIMER_H_INCLUDED_
